<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ASP photo Gallery Deployment</title>
    <link rel='stylesheet' href='sample.css' />
    <link rel="stylesheet" href="SyntaxHighlighter.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div id="Common">
            <div id="CommonHeader">
                <table align="center" width="100%" border="0" cellspacing="0" cellpadding="2">
                    <tr>
                        <td style="text-align: right; font-size: 11px; padding-right: 20px;">
                            <a href="http://cutesoft.net/forums/18/ShowForum.aspx" target="_blank" title="Image Gallery Forums">
                                Forums</a> | <a href="http://cutesoft.net/Support/" target="_blank">Support</a>
                            | <a href="http://cutesoft.net/About+CuteSoft/" target="_blank" title="About Us">Company</a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <a href="default.asp">
                                <img src="logo.png" />
                            </a>
                        </td>
                    </tr>
                </table>
                <div class="nav">
                    <a href="default.asp" class="current">Home</a><span class="Accent">|</span> <a href="Demo.htm">
                        Demo</a><span class="Accent">|</span> <a href="Deployment.htm">Deployment</a><span
                            class="Accent">|</span> <a href="http://aspimagegallery.com/Order.asp"
                                title="Purchase">Order</a>
                </div>
            </div>
            <div id="CommonBody">
                            <h1>Deployment ASP Gallery</h1>
                            <p>ASP Gallery is 100% HTML and JavaScript code on the client, and ASP code on the server, and can be setup on your web server in just 5 minutes,
                        simply by following this setup guide.</p>
                            <h4>1. Deploying Gallery Client files. </h4>
                            <p>
                                The "aspgallery" folder and all file it contains (located in the archive) should be deployed to http://{your site}/{your application}/aspgallery/ on your web site.
                            </p>
                            <h4>2. Adding Gallery into ASP page.</h4>
  <div class="dp-highlighter">
<div class="bar"></div>
<ol class="dp-vb">
    <li class="alt"><span style="background-color: yellow">&lt;%</span><span>@&nbsp;&nbsp;language=</span><span class="string">"VBScript"</span><span>&nbsp;</span><span style="background-color: yellow">%&gt;</span><span> &nbsp;&nbsp;</span></li>
    <li><span>&lt;!--</span><span class="comment">Step&nbsp;1:&nbsp;Register&nbsp;gallery&nbsp;to&nbsp;your&nbsp;page&nbsp;--&gt;&nbsp;&nbsp; &nbsp;&nbsp;</span></li>    
    <li class="alt"><span>&lt;!--&nbsp;#include&nbsp;file=</span><span class="string">"aspgallery/include_aspgallery.asp"</span><span>&nbsp;--&gt; &nbsp;&nbsp;</span></span></li>
    <li><span>&lt;% &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span></span><span class="comment">'Step&nbsp;2:&nbsp;Create&nbsp;gallery&nbsp;web&nbsp;service </span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span>AspGallery_ImagingMethod=</span><span class="string">"AspNetService"</span><span>&nbsp;&nbsp;</span></span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span></span><span class="comment">'Step&nbsp;3:&nbsp;Create&nbsp;gallery&nbsp;object </span><span>&nbsp;&nbsp;</span></span></li>
    <li><span></span><span class="keyword">Dim</span><span>&nbsp;gallery &nbsp;&nbsp;</span></span></li>
    <li class="alt"><span></span><span class="keyword">Set</span><span>&nbsp;gallery=new&nbsp;AspGallery &nbsp;&nbsp;</span></span></li>
    <li><span>gallery.AllowEdit=</span><span class="keyword">True</span><span>&nbsp;</span><span class="comment">'default&nbsp;is&nbsp;false </span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span>gallery.AllowPostComment=</span><span class="keyword">True</span><span>&nbsp;</span><span class="comment">'default&nbsp;is&nbsp;false </span><span>&nbsp;&nbsp;</span></span></li>
    <li><span>gallery.AllowShowComment=</span><span class="keyword">True</span><span>&nbsp;</span><span class="comment">'default&nbsp;is&nbsp;true </span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>gallery.GalleryFolder=</span><span class="string">"defaultalbum"</span><span>&nbsp;&nbsp;</span><span class="comment">'the&nbsp;path&nbsp;to&nbsp;the&nbsp;image&nbsp;directory </span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span></span><span class="comment">'set&nbsp;the&nbsp;user&nbsp;info&nbsp;for&nbsp;comment&nbsp;poster </span><span>&nbsp;&nbsp;</span></span></li>
    <li><span>gallery.LogonUserID=</span><span class="string">"username@server.com"</span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span>gallery.LogonUserName=</span><span class="string">"UserName"</span><span>&nbsp;&nbsp;</span></span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>gallery.ProcessAjaxPostback() &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span style="background-color: yellow">%&gt;</span><span> &nbsp;&nbsp;</span></li>
    <li><span>&lt;html&gt; &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&lt;head&gt; &nbsp;&nbsp;</span></li>
    <li><span>&lt;/head&gt; &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&lt;body&gt; &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--&nbsp;</span><span class="comment">'Step&nbsp;4:&nbsp;Render&nbsp;gallery--&gt; </span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background-color: yellow">&lt;%</span><span>=gallery.GetString()&nbsp;</span><span style="background-color: yellow">%&gt;</span><span> &nbsp;&nbsp;</span></li>
    <li><span>&lt;/body&gt; &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&lt;/html&gt;&nbsp;&nbsp;</span></li>
</ol>
</div>
                          
                        <h4>3. Adding Admin Console and Slide Show button into page.</h4>
<div class="dp-highlighter">
<div class="bar"></div>
<ol class="dp-xml">
    <li class="alt"><span class="tag">&lt;</span><span class="tag-name">a</span><span>&nbsp;</span><span class="attribute">href</span><span>=</span><span class="attribute-value">"#"</span><span>&nbsp;</span><span class="attribute">onclick</span><span>=</span><span class="attribute-value">"thegallerybrowser.ShowEditor();return&nbsp;false;"</span><span class="tag">&gt;</span><span>Admin&nbsp;Console</span><span class="tag">&lt;/</span><span class="tag-name">a</span><span class="tag">&gt;</span><span>&nbsp;|&nbsp; &nbsp;&nbsp;</span></li>
    <li><span></span><span class="tag">&lt;</span><span class="tag-name">a</span><span>&nbsp;</span><span class="attribute">href</span><span>=</span><span class="attribute-value">"#"</span><span>&nbsp;</span><span class="attribute">onclick</span><span>=</span><span class="attribute-value">"thegallerybrowser.ShowSlider();return&nbsp;false;"</span><span class="tag">&gt;</span><span>Start&nbsp;slide&nbsp;show</span><span class="tag">&lt;/</span><span class="tag-name">a</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
</ol>
</div>
            </div>
        </div>
    </form>
</body>
</html>
